/*测试break语句
产生100以内的随机数，知道随机到88位置
 */
public class TestBreak {
    public static void main(String[] args){
        int total = 0;
        while (true){
            int i = (int)(Math.random()*100);
	    System.out.println(i);
	    total++;
            if(i==88){
                break;
	    }
	}
	System.out.println("循环次数："+total);
    }
}
